import request from "@/utils/request";

/**
 * 查询营业配置列表
 * @param params
 * @returns
 */
export function getonoffList(data) {
  return request({
    url: '/management/machine.machine_on_off/getList',
    method: 'post',
    data
  })
}

/**
 * 添加营业配置信息
 * @param params
 * @returns
 */
export function addonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/add',
    method: 'post',
    data
  })
}

/**
 * 修改营业配置信息
 * @param params
 * @returns
 */
export function updateonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/update',
    method: 'post',
    data
  })
}

/**
 * 删除营业配置信息
 * @param params
 * @returns
 */
export function delonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/del',
    method: 'post',
    data
  })
}

/**
 * 查询一条营业配置信息
 * @param params
 * @returns
 */
export function getFindonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/getFind',
    method: 'post',
    data
  })
}

/**
 * 导入营业配置Excel表
 * @param params
 * @returns
 */
export function importCkconoff(data) {
  return request({
    url: '/management/machine.machine_on_off/importCkc',
    method: 'post',
    data
  })
}

/**
 * 导入取货码配置Excel表
 * @param params
 * @returns
 */
export function importPickCode(data) {
  return request({
    url: '/management/activity.activity_pick_code/importAdd',
    method: 'post',
    data
  })
}

/**
 * 导入定时开关机配置Excel表
 * @param params
 * @returns
 */
export function importOnOffonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/importOnOff',
    method: 'post',
    data
  })
}

/**
 * 导出营业配置表
 * @param params
 * @returns
 */
export function exportOnOffonoff(data) {
  return request({
    url: '/management/machine.machine_on_off/exportOnOff',
    method: 'post',
    data
  })
}